package com.chima.domain;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.persistence.Transient;

public class Job {
	private int id;
	private String name;
	private Date creatDate;
	private Employees employee;
//	private Set<JobDetail>jobDetail;
	
	/**
	 * 得分
	 */
	private Double core;
	/**
	 * 状态
	 */
	private int state;
	/**
	 * 类型
	 */
	private  int jobstyle;
	private  int nanyi;
	public int getNanyi() {
		return nanyi;
	}
	public void setNanyi(int nanyi) {
		this.nanyi = nanyi;
	}
	public Date getCreatDate() {
		return creatDate;
	}
	@Transient
	public String getCreatDateStr(){
		if(creatDate== null){
			return null;
		}
		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		return dateFormat.format(creatDate);
	}
	public void setCreatDate(Date creatDate) {
		this.creatDate = creatDate;
	}
	public int getJobstyle() {
		return jobstyle;
	}
	public void setJobstyle(int jobstyle) {
		this.jobstyle = jobstyle;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Employees getEmployee() {
		return employee;
	}
	public void setEmployee(Employees employee) {
		this.employee = employee;
	}
	public Double getCore() {
		return core;
	}
	public void setCore(Double core) {
		this.core = core;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
//	public Set<JobDetail> getJobDetail() {
//		return jobDetail;
//	}
//	public void setJobDetail(Set<JobDetail> jobDetail) {
//		this.jobDetail = jobDetail;
//	}
	

}
